package fivestar.controller.service.impl;

import java.util.List;

import fivestar.controller.service.CountryService;
import fivestar.model.dao.CountryDao;
import fivestar.model.entity.Country;

public class CountryServiceImpl implements CountryService{

	private CountryDao countryDao ;
	
	public void setCountryDao(CountryDao countryDao) {
		this.countryDao = countryDao;
	}

	@Override
	public void create(Country country) throws RuntimeException {  	
	}

	@Override
	public void delete(Country country) throws RuntimeException {
		 
	}

	@Override
	public void update(Country country) throws RuntimeException {
		 		
	}

	@Override
	public Country find(int id) throws RuntimeException {
	 	return countryDao.find(id);
	}

	@Override
	public List<Country> findAll() throws RuntimeException {		 
		return countryDao.findAll();
	}
	
	@Override
	public Short findID(String country) throws RuntimeException{
		return countryDao.findID(country);
	}

	@Override
	public Short findByCity(int id) throws RuntimeException { 
		return countryDao.findByCity(id);
	}

}
